// JavaScript Document
function writeYear(){
				var pathYear = document.getElementById('txtYear');
				var getInnerYear = pathYear.innerHTML;
				var date = new Date();
				var year = date.getFullYear();
				for(var i = (year-50); i <= ((year-10)); i++){
					getInnerYear += '<option value="'+i+'">'+i+'</option>';
				}
				pathYear.innerHTML = getInnerYear;
				//document.getElementById('txtYear').innerHTML = '<option value="0">-select form-</option>';
			}
function writeDay(month){
				var year = document.frmRegister.txtYear.value;
				var day = document.getElementById('txtDay');
				var optionValue = '<option value="0">-select date-</option>';
				for(var i = 1; i <= 31; i++){
					if(year == '0' || month == '0'){
						break;
					}else if(year%4 == 0 && month == '2' && i > 29){
						break;
					}else if(year%4 != 0 && month == '2' && i > 28){
						
					}else if((month == '4' || month == '6' || month == '9' || month == '11') && i > 30){
						break;
					}else{
						optionValue += ('<option value = "'+i+'">'+i+'</option>');
					}
				}
				day.innerHTML = optionValue;
}
		